package com.huaxia.day7a;

public class SeaFish extends Fish {

    /**
     * over
     * 重写方法权限控制子类高于等于父类，异常小于等于父类
     */
    @Override
    public void swim() {
        System.out.println("海洋鱼类在海里游泳");
    }

    /**
     * 方法重载 overload
     * @param msg
     */
    public void swim(String msg){
        this.swim();
        System.out.println("收到信息："+msg);
    }
}
